import request from '@/utils/request'

// 查询企业列表
export function getList(query){
    return request({
        url: '/basic/enter/list',
        method: 'get',
        params: query
    })
}

// 删除企业 (根据企业id)
export function delEnter(enterId){
    return request({
        url: '/basic/enter/delEnter/'+enterId,
        method: 'delete'
    })
}

// 获取企业 (根据企业id)
export function getEnter(enterId){
    return request({
        url: '/basic/enter/getEnter/'+enterId,
        method: 'get'
    })
}

// 更新企业
export function updateEnter(data){
    return request({
        url: '/basic/enter/updateEnter',
        method: 'put',
        data: data
    })
}

// 添加企业
export function addEnter(data){
    return request({
        url: '/basic/enter/addEnter',
        method: 'post',
        data: data
    })
}

// 批量删除企业
export function delAllEnter(data){
    return request({
        url: '/basic/enter/delAllEnter',
        method: 'post',
        params: {
            enterIds: data
        }
    })
}